projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f8e50f
)
Fix the MS-Windows build
author
Eli Zaretskii
<eliz@gnu.org>
Tue, 15 Aug 2017 16:17:41 +0000
(19:17 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Tue, 15 Aug 2017 16:17:41 +0000
(19:17 +0300)
* src/fileio.c (Frename_file): Don't use ENOTSUP if it is equal to
ENOSYS. (Bug#28097) (Bug#27986)
src/fileio.c
patch
|
blob
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index e557483ac4a238addba40e5a0013a350207f7a0c..1b832be344dbf67ab94021a7aaf486ce189a4aec 100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-2297,7
+2297,10
@@
This is what happens in interactive use with M-x. */)
rename_errno = errno;
switch (rename_errno)
{
- case EEXIST: case EINVAL: case ENOSYS: case ENOTSUP:
+ case EEXIST: case EINVAL: case ENOSYS:
+#if ENOSYS != ENOTSUP
+ case ENOTSUP:
+#endif
barf_or_query_if_file_exists (newname, rename_errno == EEXIST,
"rename to it",
INTEGERP (ok_if_already_exists),